package com.dw.entity;

import com.dw.dao.EmployeeDao;
import com.dw.dao.ProjectDao;

public class EmployeeProject {
	private String employeeID;
	private Employee e;
	private String projectID;
	private Project p;
	private String role;
	
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	public String getEmployeeID() {
		return employeeID;
	}
	public void setEmployeeID(String employeeID) {
		this.employeeID = employeeID;
		setE(new EmployeeDao().findByID(employeeID));
	}
	public String getProjectID() {
		return projectID;
	}
	public void setProjectID(String projectID) {
		this.projectID = projectID;
		setP(new ProjectDao().findByID(projectID));
	}
	
	public Employee getE() {
		return e;
	}
	private void setE(Employee e) {
		this.e = e;
	}
	public Project getP() {
		return p;
	}
	private void setP(Project p) {
		this.p = p;
	}
	
}
